package com.woniuxy.springboot.configurationfile.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Component
@Data
@ConfigurationProperties(prefix = "org.giles")
public class Person {
    private String name;
    private String school;
    private String[] fruit;
    private Set<String> hobby;
    private List<Phone> phones;
    private Map<String,String> countrys;
    private Date birthday;
    private int price;
    private String introduce;
}
